<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生主页</title>
</head>
<body>
<h2>欢迎登录：<span th:text="${name}"/></h2>
<a href="/logout">注销登录</a>
<hr>
<div th:each="topic : ${data}">
    <li><a th:href="@{/view/{voteId}(voteId=${topic.voteId})}" th:text="${topic.voteTitle}"></a> </li>
</div>
</body>
</html>